#pragma once

#include <Common/Common.h>
#include <Http/HttpRequest.h>
#include "../Include/libSMP.h"

class CSMP : public ISMP
{
public:
    CSMP();
    virtual ~CSMP();

protected:
    virtual void Release() override;
    virtual void SetServer(const char *lpszIP, unsigned short uPort) override;
    virtual void SetApplication(const char *lpszAppName, const char *lpszIP) override;
    virtual bool Initialize() override;
    virtual void Report(WarnLevel eLevel, WarnType eType, int nCode, const char *lpszDetail) override;

protected:
    CSocketAddr             m_addrServer;
    string                  m_strAppName;
    string                  m_strLocalIP;

    CHttpRequest            m_request;
};
